package xin.zhiyin.仓库;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.support.JpaRepositoryImplementation;
import xin.zhiyin.实体.用户Entity;

public interface 用户Repository extends JpaRepositoryImplementation<用户Entity,Long> {

    @Query(value = "SELECT * FROM user WHERE login_name = ?1 AND login_password = ?2", nativeQuery = true)
    用户Entity findByLoginNameAndLoginPassword(String 登录名, String 登录密码);
}
